﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Rendering.PIX
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.Rendering
{
  /// <summary>
  ///   <para>Provides an interface to control GPU frame capture in Microsoft's PIX software.</para>
  /// </summary>
  [NativeHeader("Runtime/Graphics/GraphicsScriptBindings.h")]
  public class PIX
  {
    /// <summary>
    ///   <para>Begins a GPU frame capture in PIX. If not running via PIX, or as a development build, then it has no effect.</para>
    /// </summary>
    [FreeFunction("PIX::BeginGPUCapture")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void BeginGPUCapture();

    /// <summary>
    ///   <para>Ends the current GPU frame capture in PIX. If not running via PIX, or as a development build, then it has no effect.</para>
    /// </summary>
    [FreeFunction("PIX::EndGPUCapture")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void EndGPUCapture();

    /// <summary>
    ///   <para>Returns true if running via PIX and in a development build.</para>
    /// </summary>
    [FreeFunction("PIX::IsAttached")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern bool IsAttached();
  }
}
